package com.dudy.chain;

/**
 * @program: zhuguangDemo
 * @description: ${description}
 * @author: dudy
 * @create: 2018-04-05 21:15
 **/
public class TestMain {
    public static void main(String[] args) {
        AbstractProvince hunan = new Hunan();
        AbstractProvince hubei = new Hubei();
        AbstractProvince jiangxi = new JiangXi();
        hunan.setProvince(hubei);
        hubei.setProvince(jiangxi);
        jiangxi.setProvince(null);
        hunan.todo("hubei");
        hunan.todo("xxx");
    }
}
